home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-3485
/
art-3871
/
mdl10
/
makefile
< prev
next >
Wrap
Makefile
|
1993-06-07
|
2KB
|
98 lines
#
# Makefile for mdl
#
.SUFFIXES:
.SUFFIXES: .c .o .ttp
RM = rm
NROFF = xnroff
NRFLAGS = -manx -rO1 -T
# compiler stuff:
SYSINC = g:/mint/include
SYSLIB = g:/mint/lib
SPECL = -nostdlib $(SYSLIB)/crt0.o
CC = gcc -z -Wall -v -I$(SYSINC)
LD = gcc -z -Wall -v -L$(SYSLIB) $(SPECL)
LIBS32 = -lgnu -liio #-lgem
LIBS16 = -lgnu16 -liio16 #-lgem16
# if -mshort, use LIBS16...
LIBS = $(LIBS32)
# compile/link options:
# defines for various features, etc.
# NO_INVERT def if black is 0xff (flicker.c)
# NEW_RANDOM def to new code to add random noise (flicker.c)
DEFS = -DNEW_RANDOM
OPT = -O
DEBUG =
PROF =
MISC =
CFLAGS = $(OPT) $(DEBUG) $(PROF) $(DEFS) $(MISC)
LDFLAGS = $(OPT) $(DEBUG) $(PROF)
BINDIR = e:/local/bin
MANROOT = d:/usr/man
MANEXT = l
MANDIR = $(MANROOT)/man$(MANEXT)
AUXDIR = $(MANROOT)/man5
OBJS = mdl.o flicker.o
TARGET = mdl.ttp
MANPAGE = mdl.$(MANEXT)
AUXPAGE = dl.5
all: $(TARGET)
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
fixstk 8k $(TARGET)
gversion -v 1.0 $(TARGET)
test: test.dl $(TARGET)
@echo running a test now
$(TARGET) -v -r 8 test.dl
test.dl: mkdl.ttp
mkdl test.dl
# this is a program to create a test .dl file:
mkdl.ttp: mkdl.o
$(LD) $(LDFLAGS) -o mkdl.ttp mkdl.o $(LIBS)
fixstk 8k mkdl.ttp
gversion -v 1.0 mkdl.ttp
manpage: $(MANPAGE) $(AUXPAGE)
$(MANPAGE): mdl.man
$(NROFF) $(NRFLAGS) mdl.man > $(MANPAGE)
$(AUXPAGE): dl.ma5
$(NROFF) $(NRFLAGS) dl.ma5 > $(AUXPAGE)
# note: i only install compiled manpages on my system.
install: $(TARGET) $(MANPAGE) $(AUXPAGE)
cp $(TARGET) $(BINDIR)
cp $(MANPAGE) $(MANDIR)
cp $(AUXPAGE) $(AUXDIR)
clean:
$(RM) -f $(OBJS)
clobber:
$(RM) -f $(TARGET) $(MANPAGE) $(OBJS)